package services.impl;

import bean.Product;
import dao.ProductMapper;
import dao.mapper.ProductMapperImpl;
import services.ProductService;

import java.util.List;

/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */
public class ProductServiceImpl implements ProductService {
    private ProductMapper productMapper = new ProductMapperImpl();

    @Override
    public List<Product> getProductByindex(String index) {
        return productMapper.getProductByindex(index);
    }

    @Override
    public Product getProductById(int pid) {
        return productMapper.getProductById(pid);
    }
}
